package uk.ac.strath.cis.metric_spaces.framework;

import java.util.Set;

/**
 * @author Robert
 *
 * @param <E>
 */
public interface NearestNeighbourQuery<E> {

    /**
     * 
     */
    int UNBOUNDED = Integer.MAX_VALUE;

    /**
     * @param element
     * @param number
     * @return
     */
    public Set<E> query(final E element, int number);

    /**
     * @param index
     */
    public void setIndex(AbstractMetricIndex<E> index);
}
